package com.jxin.mall.weixin.service;


import com.jxin.mall.weixin.service.api.WeiXinAppService;
import com.jxin.mall.weixin.service.entity.App;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 微信消息处理类
 * @author  蔡佳新
 * @version 1.0
 * @since   jdk 1.8
 */
@RestController
@Slf4j
public class WeiXinAppServiceImpl implements WeiXinAppService {
    @GetMapping(value = "/getApp", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @Override
    public App getApp() {
        return App.builder()
                  .appId("105760739")
                  .appName("新")
                  .build();
    }
}
